<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnDontHavePlanInStepCategoryMonthReportTable extends AbstractMigration
{
    public function up()
    {
        $this->table('step_category_month_report')
            ->addColumn('have_plan', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '是否有计划'])
            ->save();
    }

    public function down()
    {
        $this->table('step_category_month_report')->removeColumn('have_plan')->save();
    }
}
